package de.slothsoft.wasbinich.swingclient.control;

import java.awt.Color;
import java.awt.Font;

import javax.swing.Action;
import javax.swing.Icon;

import de.slothsoft.wasbinich.swingclient.common.RoundButton;

public class WasBinIchButton extends RoundButton {

    private static final long serialVersionUID = 7419865506929826575L;

    public WasBinIchButton() {
	super();
	init();
    }

    public WasBinIchButton(Action a) {
	super(a);
	init();
    }

    public WasBinIchButton(String text) {
	super(text);
	init();
    }

    public WasBinIchButton(Icon icon) {
	super(icon);
	init();
    }

    private void init() {
	setForeground(Color.WHITE);
	setFont(getFont().deriveFont(Font.BOLD));
	setFirstColor(new Color(0, 252, 0));
	setSecondColor(new Color(0, 130, 0));
	setBorderColor(Color.BLACK);
    }
}
